<?php
require_once 'phpmoko/lib/common.php';

require_once 'phpmoko/ui/Form/TextBox.php';

/**
 * A text box that visually masks its input to prevent eavesdropping.
 *
 * @author BorSanZa
 */
class PasswordTextBox extends TextBox
{

	/**
	 * Creates an empty password text box.
	 */
	function __construct()
	{
		parent::__construct();

		$this->setStyleName('pmk-PasswordTextBox');
	}

	/*
	 * (non-PHPdoc) @see TextBox::getType()
	 */
	protected function getType()
	{
		return 'password';
	}
}